<?php
/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: Sam
 * date: 2021-02-25 18:01:48
 * @LastEditors: Sam
 * @LastEditTime: 2021-03-03 15:04:44
 */
namespace app\__MODULE__\model;
use think\Model;

class Option extends Model {
    
    /**
     * 数据表主键
     * @var string
     */

    protected $pk = 'id';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    
     /**
     * 模型名称
     * @var string
     */
    protected $name = 'option';



    public function question(){
        return $this->belongsTo(Question::class,'question_id');
    }

}

